<%@page pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<table width='100%' height='31' border='0' cellspacing='0'
		cellpadding='0'>
	<tr>
		<td width='40'
			background='${pageContext.request.contextPath}/common/images/index_26.jpg'>&nbsp;
			
		</td>
		<!--内容区导航开始-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<span class="channel_title">读者管理
				<span style="color:#000;"> >> 新增读者信息  >></span> </span></td>
		<!--内容区导航结束-->
		<td align='left' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>&nbsp;
		</td>
		<td width='13' align='right' valign='middle'
			background='${pageContext.request.contextPath}/common/images/ctitle_bak_center.jpg'>
			<img src="${pageContext.request.contextPath}/common/images/ctitle_bak_right.jpg" height="31" width="10">
		</td>
	</tr>
</table>

<table width='100%' height="339" border='0' cellspacing='0' cellpadding='0'>
	<tr align="center">
		<td>
			<form name="aform" action="${pageContext.request.contextPath}/sysManage/readerManage/reader.do?method=addreader" method="post" onsubmit="return (checkuser());">
				<table>
					<tr>
						<td width="30%"><span style="fond-size:12px">姓        名：</span></td>
						<td width="30%"><input type="text" id="userName" name="userName" onblur="checkname();"></td>
						<td width="30%"><div id="musername" style="color:red"></div><td>
						
					</tr>
					<tr>
						<td width="30%"><span style="fond-size:12px">编        号：</span></td>
						<td width="30%"><input type="text" id="lib_card" name="lib_card" onblur="checklibcard();"></td>
						<td width="30%"><div id="mlibcard" style="color:red"></div><td>
					</tr>
					<tr>
						<td width="30%"><span style="fond-size:12px">密	     码：</span></td>
						<td width="30%"><input type="password" id="password" name="password" onblur="checkpassword();"></td>
						<td width="30%"><div id="mpassword" style="color:red"></div><td>
					</tr>
					<tr>
						<td><span style="fond-size:12px">性        别：</span></td>
							<td><input type="radio" value="男" name="gender" checked>男
								<input type="radio" value="女" name="gender">女
							</td>
					</tr>
					<tr>
						<td><span style="fond-size:12px">职称/学位：</span></td>
						<td>
						<select id="user_type" name="user_type">
							<c:forEach items="${allUserTypes}" var="usertype">
									<option value="${usertype.id}">${usertype.type_name}</option>
							</c:forEach>	
						</select>	
						</td>
					</tr>
					<tr>
						<td width="%30"><span style="fond-size:12px">电话号码：</span></td>
						<td width="%30"><input type="text" id="phone" name="phone" onblur="checkphone();"></td>
						<td width="%30"><div id="mphone" style="color:red"></div><td>
					</tr>
					<tr>
						<td width="%30"><span style="fond-size:12px">邮        箱：</span></td>
						<td width="%30"><input type="text" id="email" name="email" onblur="checkemail();"></td>
						<td width="%30"><div id="memail" style="color:red"></div><td>
					</tr>
					
					<tr align="center">
						<td height='31'><input type="submit" value="添加"></td>
					 	<td><input type="reset" value="清空"></td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>
<script type="text/javascript" src="${pageContext.request.contextPath}/sysManage/bookTypeManage/checkuser.js">
</script>